package com.lhoverc.service.post;

import com.lhoverc.pojo.VO.CommentVO;
import com.lhoverc.pojo.VO.PostVO;
import com.lhoverc.pojo.entity.CommentEntity;
import com.lhoverc.pojo.entity.LikeEntity;
import com.lhoverc.pojo.entity.PostEntity;

import java.util.List;

/**
 * @Author: LiCheng
 * @CreateTime: 2025-05-03
 * @Description:
 * @Version: 1.0
 */
public interface PostService {
    /**
     * 获取post
     * @return
     */
    List<PostVO> getPosts();

    /**
     * 获取comments
     * @param id
     * @return
     */
    List<CommentVO> getComments(int id);

    /**
     * 添加评论
     * @param commentEntity
     */
    void addComment(CommentEntity commentEntity);

    /**
     * 添加帖子
     * @param postEntity
     */
    void addPost(PostEntity postEntity);

    /**
     * 取消点赞
     * @param likeEntity
     */
    void deleteLike(LikeEntity likeEntity);

    /**
     * 点赞
     * @param likeEntity
     */
    void addLike(LikeEntity likeEntity);

    /**
     * 获取点赞的帖子id
     * @param likeEntity
     * @return
     */
    List<Integer> getLikes(LikeEntity likeEntity);
}
